package com.kgc.jy91.springboot1.autoConfiguration;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @program: springboot1
 * @description
 * @author: wanggang
 * @create: 2020-12-16 15:44
 **/

//数据读取类

@ConfigurationProperties(prefix = "hello")
@Component
public class SayHelloProperties {
    private  String  helloMsg= "springboot";

    public String getHelloMsg() {
        return helloMsg;
    }

    public void setHelloMsg(String helloMsg) {
        this.helloMsg = helloMsg;
    }
}
